how to slide a slider from left to right and vice versa

Using swipe option