programmatically created pan gesture