Sun driven photochemical reaction in a horizontal plane slab