You can avoid having your peppermint bark separate by not rushing the chilling process. The longer you allow the peppermint bark to set, the less likely it will be for the layers to separate. Also, make sure to bring the chocolate to room temperature before breaking it.