added swipe function and css animation, removed button