How can I manage subprocesses in draw.io diagrams?

I have a complex draw.io diagram that I want to compress a little. I know that I can take parts of the diagram and put them on other pages that I link to, but I like to have everything on one page. Is there a way to have something like expandable shapes where I can store, like subprocesses?

Hi there! Yes, this is possible. You can create container shapes that store entire subprocesses or whatever shapes you like to display. All you have to do is selecting the specific shape and hit Ctrl+G (Cmd+G on a Mac). You can now expand and collapse the shape. When you pull other shapes in the container, you will notice a purple halo around the container. Just release the mouse to attach it.