[slate] fix resize