adding the class of the left panel and right panels.