Change width to innerWidth rather than outerWidth

Else it results in an ever growing element when resizing browser (due to box shadows for instance).