title: Bootstrap portofolio - empty grid space
body: <p>I am having trouble with grid in bootstrap grid. I  have empty spaces in a row. <a href="https://i.stack.imgur.com/euSPT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/euSPT.png" alt="ON desktop"></a> this is shown on desktop and on mobile is like <a href="https://i.stack.imgur.com/4M3Pb.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4M3Pb.png" alt="enter image description here"></a>.</p>
  
  <p>The code which I am using is </p>
  
  <pre><code>  &lt;div class="row"&gt;
          &lt;div class="col-xs-6 col-md-3 col-sm-4  portfolio-item"&gt;
              &lt;a href="#"&gt;
                  &lt;img class="img-responsive" src="image/book image/book1.png" alt=""&gt;
              &lt;/a&gt;
          &lt;/div&gt;
          &lt;div class="col-xs-6 col-md-3 col-sm-4 portfolio-item"&gt;
              &lt;a href="#"&gt;
                  &lt;img class="img-responsive" src="image/book image/book2.png" alt=""&gt;
              &lt;/a&gt;
          &lt;/div&gt;
          &lt;div class="col-xs-6 col-md-3 col-sm-4 portfolio-item"&gt;
              &lt;a href="#"&gt;
                  &lt;img class="img-responsive" src="image/book image/book3.png" alt=""&gt;
              &lt;/a&gt;
          &lt;/div&gt;
          &lt;div class="col-xs-6 col-md-3 col-sm-4 portfolio-item"&gt;
              &lt;a href="#"&gt;
                  &lt;img class="img-responsive" src="image/book image/book4.png" alt=""&gt;
              &lt;/a&gt;
          &lt;/div&gt;
  
           &lt;div class="col-xs-6 col-md-3 col-sm-4 portfolio-item"&gt;
              &lt;a href="#"&gt;
                  &lt;img class="img-responsive" src="image/book image/book4.png" alt=""&gt;
              &lt;/a&gt;
          &lt;/div&gt;
         &lt;/div&gt;
  </code></pre>
  
  <p>I don't really know how I could fix that, so I hope somebody can give me some advice.</p>