added outerWidth(); instead of width(); to calculate the full size