How to store variable bound to slider's value?

Thanks! It works!