fix firefox issue with charts and sliders