Add resize event to any DOM element