So when there are a list of items that have the same indent, there should be a way to collapse all that is indented in that hierarchy than clicking each and every one to open or close.
Can you please code an option for this to happen that is easy as possible?

Photo Viewer

View photos in a modal