Include caption underneath post images

the following should just show the caption:

echo '<div class="slideshow-content"><img src="'.wp_get_attachment_url($attachment->ID, 'thumbnail', false, false).'" /><div class="captions">'.apply_filters('the_excerpt', $attachment->post_excerpt).'</div></div>';

(applying the excerpt filter adds the paragraph tag automatically)