How to dynamically change slider range and value range of a variable?

I would like to know that too :o (BP)