Add crystal slab calculation