Polarons in a polar crystal slab at finite temperatures