.row
  .col-xs-12
    %h1 Movies

    = render 'movie_filters_nav'

.row
  - @movies.each do |movie|
    .col-xs-6.col-sm-4.col-md-3.col-lg-2
      = link_to movie_path(movie.id), class: 'thumbnail' do
        = image_tag(poster_url(movie), alt: movie.title)

.row
  .col-xs-12
    %h1 Movies

    = render 'movie_filters_nav'

.row
  - @movies.each_with_index do |movie, i|
    .col-xs-6.col-sm-4.col-md-3.col-lg-2
      = link_to movie_path(movie.id), class: 'thumbnail' do
        = image_tag poster_url(movie), alt: movie.title
    - if (i + 1) % 6 == 0
      .clearfix.visible-lg-block
    - if (i + 1) % 4 == 0
      .clearfix.visible-md-block
    - if (i + 1) % 3 == 0
      .clearfix.visible-sm-block
    - if i.odd?
      .clearfix.visible-xs-block

Fix broken grid for images with different height
Fix broken grid for images with different height
