adjust height according to list size