smaller tree + dynamic height and width determintation