slots placement logic