cache slice during build