Reorder the tiles once the dragged tile goes to the new location.
If it closes up immediately (as it does now) that means things are shuffling around while the user is actually dragging which can be stressful – they’ve immediately hit the point of no return Ideally the original location stays ‘open’ until the user lets go in the new locations. Then it all shifts around.