- implemented _.debounce for resizing