fix cleanup of slice headers in multi-slice pictures