fix bugs for slidebars