updated slider to have toggle option