resize wavelength control panel when slider is shown/hidden