Added Resize Method

Added Resize method to be called on window resize