WIP:implementing pan gesture for flipping through images;