Your case is very complex, need to use JS to move each image. Each image will need a code.
Can you add me as a contributor? I will test some other approach
@tuanphan I can let you try some other approach but if you find a way with JS, do you think I can copy your JS process by myself in the future ? Because a lot of image will come in the future.