Drag and drop on an array from pictures like Instagram feed


I currently have a page with an array of images next to each other (3 photos per line like an Instagram feed for example) and I would like to be able to add a drag and drop between these photos to reorganize them.

Following my research I came across several examples of dragging and dropping with lists (dragging from list 1 to 2) or sliding up and down or from right to left.

All these solutions do not meet my need which is a drag and drop of a single vertical list as horizontal.

Do you have any ideas ?

thank you for your time