fixed the image gallery at higher resolutions