Clean your oven?
Other than that, some foods will spatter no matter what you do. You could try using foil wider than the cookie sheet and angle it up a bit to catch some of the spattering (assuming your sheet pan has a lip around it already). If they're too close to the top, the grease could also be hitting an upper element.