start resize functionality