Add resize event listening to embed handler