Implements swipe gestures to handle panels visible option