refactor slab