adding swipe functionality for offcanvas