Update threshold_slider.cpp