Add merge class for the different groups