adds swipe gesture recognizer