Flicker when using appendChild

I'm adding elements to the DOM dynamically (lockup elements into a grid) and it works fine, except that every time I do it, the entire grid seems to redraw, causing flicker. Any suggestions?

Flicker when using appendChild
 
 
Q