update labels when change the value of the slider