modification on gallery for gallery show