Slider example to change position of object