slider: check range