Making slabs as objects