small refacto (memslot init)