add swipe threshold