collapse panels for periods editing