open/close panels on swipe