Adapt height according to the number of lists