account for args when creating the slice