Slider: trim value even if it is the min/max. Fixed #9376 - Slider value...

... can be set greater than value of 'max' option