Tag/untag during coffee break

I was helping someone to get back to the yellow beacon during a group ride. As a comminly used tactic, I asked them to turn on their coffee break and tag to me. We were catching back up in a quick manner but had to go through the red beacon group. During this time, the person got unlatched from me and got latched to a much slower person. It would be much nicer if both of the people had a latch/unlatch option. Is there a workaround?