Window width calculation more accurate (to media queries).