sets width correctly