How to keep a slider position?

Just to give you an update and anyone whos looking at this for answers. I got it working. I didnt bind the actual slider to the variable! that is all i missed out! Once again thanks alot!