Compact multiple spaces to one