Episodic star formation in a group of LAEs at z = 5.07