list compact and expand for shorter list storage