Found the solution, less pages subform after subform with borders solved it. A new page in Livecycle works more like a pge break.Thanks for the advices.
Pages are set to flow Direction Top to bottom and page breaks are allowed within the pageThe subforms on the page are set content: positioned, auto fit in height.So is there a way to avoid unwanted creation of the gaps?