How about using http://getbootstrap.com/components/#thumbnails instead of custom CSS ?