disable input when gallery is in view