Replaced .outerWidth() with .outerWidth() to support mobile ddevices