There are two potential causes for the layers of your peppermint bark to separate. First, ensure you use white chocolate made with cocoa butter and avoid products made with palm or coconut oil. Dark chocolate is made with cocoa butter which doesn't like to bond with coconut or palm oil in white chocolate. Secondly, breaking the bark at room temperature rather than fresh out of the fridge may help the layers not to crumble apart from one another.