Smoothing slider functionality