Scala sliders - refactored