fixed making of the items slice