apply max-width to the thumbnails