I'm just gonna say genjustu we seen when obito brought them back out he said he placed them under his genjustu ever sinceSeemingly. Due to the fact that he absorbed Torune before Fuu, and still phased without Torune striking him in the Kamui dimension, it can be assumed he instantly placed them in a genjutsu OR that he can choose their location in the Kamui land.