With two layouts:

I assume the second layout has an image with the Page Number expression set to "PAGE_NR() - 1". Select that layout and set the Number of Copies expression to "VAL([Pages])".

That should be all you need to do. The "PAGE_NR() - 1" expression is reevaluated for each layout copy.