The best way to ensure that the filling remains stable and you don't risk your cake sliding apart is to pipe a ring of the out frosting around the edge of the bottom layer, then fill the middle in with the filling.