adjust spacing for relative width

fix dot spacing to adjust for canvas width rather than be hardwired