Setting swipe offset