Fixed responsiveness for gallery.