add width and height to each dom to avoid when first render error