now generating slice files correctly