jquery slider does not working on wordpress posts
===

it seems simple but i was unable to figure it out , i am using wordpress post loop to view the posts and then apply a slider 
<code><div id="services-example-1" class="theme1">

		<div class="toolbar">
			<div class="left"></div><div class="right"></div>
		</div>
		<ul>
			<?php while ( have_posts()): the_post() ;
			?>
			<li>
				<img src='some source '/>
				<div style="margin-top:16px"></div>
				<h2><?php the_title(); ?></h2>
				<p><?php get_the_content() ?></p>
				
				</li>
			<?php endwhile; ?>
			</ul>
			</div></code>

on the otherhand when i am using simple loop to show some dummy post and then apply the slide code it works fine 
<code><div id="services-example-1" class="theme1">

		<div class="toolbar">
			<div class="left"></div><div class="right"></div>
		</div>
		<ul>
			<?php for($i=0;$i<10;$i++)
			{ ?>
			<li>
				<img src='some source' />
				<div style="margin-top:16px"></div>
				<h2>heading</h2>
				<p> some text</p>
				
				</li>
			<?php } ?>
			</ul>
			</div>
</code>
i dont know why this happen , may be i am missing something , 
somebody please help me 