implemented swipe for side bar