GridFloor Material

Hey guys
I want to create a grid material similar to the grid in the UE4 editor, every 10th line beeing thiker than the once in between.
I created a material with a grid for the thinner lines and blended that with a “blendOverlay node” with the same setup but with a biger cellsize. This generates the problem that the bigger grid apeares to have small artefacts of the smaller grid.
Is there a way to have a better gridmaterial?

Any help or tips to ged rid of this problem would be helpfull.

Merry X-Mas!