Let your meat mixture cool slightly before adding the layer of mashed potatoes. This should keep the layers nice and even without sinking.