Fix argument slice trimming