No, for now my intention wasnt of moving the items.
And yes, previously, if clicking on an object, the object would be deleted from the array. So technically it was working fine.
But the moment I added an extra interaction, I didnt figure out how to make it work.
For now, I compare the name of the items, which deletes all the items of the same name, but my first though was that I could compare their actual position in the array instead. So once I click on a slot, I use the position I clicked on to compare it with an array.