add swipe method to section