Hi,
Assuming the screen initially looks like this -

After I click on "Add Rows" button a row is added in the gallery, the "Per day total" text boxes and the "Submit Timesheet" & "Add Rows" buttons are re-positioned accordingly.

So on after a couple clicks(Add Rows) the screen should look like this -

My Question is-
How do I create a flexible height horizontal gallery ? And along with it how do I achieve re-positioning controls as the size of the gallery increases?
Thank you