fixed bug - the image gallery is not positioned in center if image
loading is slow.