Thanks so much for your help.
I have updated the example you provided with my requirements. Please see the attachment.
As you can see from my example that I have included 30 buttons on page 1 and I select only 10.
Now the problem is that on Page 2 the buttons appears all over the place when I select random buttons on Page 1.
I want to align the buttons properly on Page no matter what buttons you select on Page 1.
Please refer to attachment. Any help would be really appreciated.