Animated the view to return to the center after swipe it