It's from an episode of The Garfield Show called "Time Twist". I can't remember exactly what happens in the episode but garfield gets sent to some alternate dimension where citizens are giant spiders and is chased by spider jon and odie because he swatted spiders in the real world.