Validate slider value, when limits change

This PR is created to try to fix #6155