fixed d3 graph layout resizing