Resize method

Added a resize method to be called on $(window).resize