timeline: Append missing layers when moving groups between layers

This was a missing feature of the newly added groups