It's best to cut the dessert into diamond shapes before it goes in the oven, using a sharp knife. If you cut it after, it will crumble and come apart, so ensure you cut it beforehand. Even if the cuts don’t go all the way through or you miss a bit, that's fine, you can always cut through those parts afterwards.