Slider callback fix

Issue: #4750