creating swipe