Fix bug that caused multiple sliders to be created