Generate slot ids in script