GMSA: Enhancing Context Compression via Group Merging and Layer Semantic Alignment