Resizes on document ready to prevent overflow