add support for slice to the Expr

This code allows to get an slice of parameters in an expression