function slide() { if($(\'.current\').is(\':last-child\')){ $(\'.current\').removeClass(\'.current\'); $(\'#imgholder\').first().addClass(\'.curr
You only call it once, so it'll only execute once.
Perhaps you're thinking of "setInterval()".
When you call it, by the way, just pass the name of the function and not a string:
setInterval(slide, 3000);