Smooth graph HTML slider