Print url to image from profile2 field with mutiple images
To get just the path of an image, use file_create_url
To get the path of an image using an image style, use image_style_url


e.g, in the context of your code:

&lt;div id="background-slideshow"&gt;
&lt;?php
  $uid = 24;
  $user_fields = user_load($uid);
  $profile2 = profile2_load_by_user($user_fields-&gt;uid);
  $images = field_get_items('profile2', $profile2['side'], 'field_baggrundsbillede');    
?&gt;
&lt;?php foreach($images as $key =&gt; $image): ?&gt;
  $url = file_create_url($image['uri']);
  // $url = image_style_url('medium', $image['uri']); // example image style url
  &lt;div class="test"&gt;
   &lt;?php print $url; ?&gt;
  &lt;/div&gt;
&lt;?php endforeach; ?&gt;
&lt;/div&gt;