implementing drag to move left right