finished sliders and cleaned up code