Laying out spans for dynamic data