fix graph slide for firefox