Complex sentence: It lies at the northern edge of the Cairngorm mountains, about twenty miles south east of Inverness, and is in the traditional county of Morayshire, until the 1860s being partly within a detached portion of Inverness-shire.
Split into simpler sentences: It lies at the northern edge of the Cairngorm mountains, about twenty miles south east of Inverness. It was formerly in the county of Moray, until the 1860s being partly within a detached portion of Inverness-shire.