updating inventory management to keep everything compressed in the first slots