Logarithmic relaxations in a random-field lattice gas subject to gravity