Cleaned up the way swipe interacts with slide