I am trying to write a program that takes slices from image and arranges them in a specific order. Currently, I have managed to create a dynamic square group. How to shift t