Some duplicated code moved from child sliders to the base