A general problem of pulse laser heating of a slab