remove panGesture and improve its animation