Used params.slice instead of params.select