handle browser window resize
Merge pull request #4 from szymonkaliski/feature/browser-resize

handle browser window resize