binded resize function to