optimized slider handling