capture left and right gesture