I think the best way is to use System - For loops (use two fors, name them for example "x" and "y").
For "x" from 1 to 5 create sprite at loopindex("x") * sprite.width
For "y" from 1 to something create sprite at loopindex("y") * sprite.height
idk, something like that.