Move crop box on all geometry in phase

I would like to create a graph that takes crop box and places it like this with configurable side distances on top of the group (all the desired elements are grouped).
Moving part could be quite possible since all I need is centre points of both objects but how do I make it recognize where to place the borders?
I probably need the most left/right/up/down elements in the view to determine the crop box size.

EDIT: Ignore the highlighted phase on the left please

Try doing a little more research on your own first. There are plenty of other topics on the forum that cover this and other similar scenarios, usually through the use of a bounding box. From there, you would just have to add offsets to each side.