Adding a listener for swipe begin/end