fixed showGallery modal