Creating / Spawning things in a widget.

I’m trying to create a dynamic inventory, with bags of different sizes, so the number of available slots changes with every new bag, but I’m having trouble with creating those slots inside the widget at runtime. I can’t seem to find the node to do that. I have been looking in other forum topics, on unreal’s documentation but haven’t found what I need.

Does anyone know if what I’m trying to do is possible and the way it is done?

I’m using Unreal 4.26 with blueprints, but I would also like an answer for C++.

try here