change width to outerWidth for Bootstrap compatibility