Make sure the image gallery is always centered.