fix bug with sliders
add histogram scales