resize handler

resize handler debounced and registered by addEventListener/attachEvent