created sliding function and saves state of movement in object
Merge pull request #2 from generalzhou/ui_slider

created sliding function and saves state of movement in object
Fix merge conflicts