calculate initial page width from first page