resize event for any HTML element