On the dimension of the attractor for the B'enard problem with free surfaces