download Pins & Boxes
https://aescripts.com/pins-and-boxes/

With Pins and Boxes for After Effects you can also create complex layouts that involve multiple compositions. In particular you can have pins in one composition that are connected to layers in other compositions. In the tutorial you learn all details about how to setup this up and use multiple compositions with Pins & Boxes effectively.