Wall effect for rigid and fluid spheres in slow motion