prevent scrolling when gallery is maximized