prevent resize event being bound multiple times