change the span width of templates