don't display gallery until needed