change layout to d3 pages to scale with device