Fixing $galleryItemClick