Allow for multiple sliders, fix slider code being executed twice