Help With Inventory

So I wanted to Learn to create a inventory without looking videos and stuff.
but i cant get a lot of stuff.

first of all, i got a Widget Which is basically has a image and button with no canvas panel. and my character has a function which traces the item on press of a button.
the raytrace works completely fine.but what i want is from the actor hit i want to cast to the actor it hit [there are going to be different actors]. and get its image. i cant get my self to do this.

And Second thing is creating instances of the slot widget that i created everytime i pickup. Please help me in this. once i get a hang of it i would be able to work my way up.

Also Can Anyone Give me a Concept of how inventory basically works?
any tipS?