Made slider a bit more customizable with variables