Smoothened the loading of the image gallery.