The orthogonal projection on slice functions on the quaternionic sphere