The characteristics of a two-lens slit spatial filtering system on image relay and spatial filtering are discussed with detailed theoretical calculation and numerical simulation. The slit spatial filter can be used as the cavity spatial filter in large laser systems, such as National Ignition Facility, which can significantly decrease the focal intensity in cavity spatial filter and suppress or even avoid the pinhole (slit) closure while keeping the output power and beam quality. Additionally, the overall length of the cavity spatial filter can be greatly reduced with the use of the two-lens slit spatial filter.