set width in template