add pan gesture animation