add gems into preformatted divs