Slider: fix cyclomatic complexity build error