Try to put them both in a box and then use the collapse method. (and if you’re using EditorX group them into a stack)