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