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

Bumping this - is there a way to do this?