Currently the only way of figuring out how many slots does a cargo take, is to visit a warehouse or by try and error try to pack it, which not always is the preferable way, especially if the cargo if found in the wild, or we're nowhere close the warehouse.
Trying to examine a warehouse or an loose cargo looks like that
I'd propose expanding the pop-up with a slot counter, as a one seen at warehouse loading screen.
potentially a "Slots" word could be added to indicate clearer, at least for the loose cargo
Another example of warehouse
Currently:
Proposed (perhaps there would be a space for "Slots" word):
1.
2.
3.
4.