Eigenvalue problems for slice functions