instead of passing an onChange function to the slider, the value now calls its listeners