syncHeight for slice