Corrected and updated slider to proper practices