Original: The King had arranged for a pair of matching coffins with removable sides, so that when he followed her to the grave (twenty-three years later), they could lie together again.
Simplified: He bought to coffins with removable sides ,so after he died they would lie together again.