code: function createAndAddSlot(slotNext, indexMapForSlot) {
                      var slotNew = (indexMapForSlot === indexMap ? createPrimarySlot() : createSlot());
  
                      insertSlot(slotNew, slotNext);
  
                      return slotNew;
                  }
docs: Creates a new slot and adds it to the slot list before slotNext