changing swipe direction