Make slider work on touch devices