Dynamically

I have made this:

i want to make a code so the things i put on those folders appear:

If im in photos all the photos appear and i can click them to see them if it’s possible please help me