A colossal cosmic collision roughly 10 billion years ago saw our galaxy's mass expand by a quarter after merging with a smaller one, say scientists.