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

Using swipe option