Seismic displacement of gravity walls by a two-body model