Close analogy between radiative and conductive heat flux in a finite slab