rewrite touch events in slider