fixed bug in generating model for double slab