Fixed slab making algorithm