changed internal type of slot from siz (size_t) to int for more accurat
representation of -1 invalid slot number