add window.resize event to reload plugin