reordering groups when any group is hide/show