making sliders thread safe since they were not always working properly