Handle multipage frames copy

Issue : https://sourceforge.net/p/qlcplus/discussion/general/thread/8bcf954e/


Tested the fix with simple frames, multipage frames, nested multipage frames.