Also move before/after content to last fragments

It's not a supported use case than splitting before/after elements but
that fix was easy