Fix rubocop warning 'TrailingComma' in slice_attr.rb