The secret to making sure your shepherd’s pie does not fall apart is making sure the filling and potato topping are the right texture. If either layer contains too much liquid, you will have difficulty cutting clean slices of shepherd’s pie from the baking dish. If it’s falling apart, it will likely still taste amazing, but won’t be super pretty.