Nicer solution for the problems with the slabs.