Quantum Leap is a tv-series that aired from 1989-1993. Scientist Sam Beckett finds himself trapped in time--"leaping" into the body of a different person in a different time period each week.
Season 6 - 2F03 - Treehouse of Horror V
 
 
After Homer has repaired the toaster in the segment Time And Punishment he is able to leap back and forth in time, similar to in the series Quantum Leap.
Season 6 - 2F01 Itchy & Scratchy Land - 2F14 Homer vs. Patty & Selma
 
   
Click for animation
In the couch gag to these episodes the Simpsons are transported into the couch the same way as in the series.
     
Thanks to Quantumleap-Alsplace.com
 
   

 
 
 
 
Simpsonschannel