matrix grid lines, hopefully fix embedding

switch to using a DOM element per grid-line rather than a DOM element per matrix cell, and switch the positioning on the container to improve embedding compatibility.