Updates z-index for simpleGallery.