Here is my new code. I can't get the for loop to work.. It's only working for $x = 1 but does not run through up to 5..
<?php for ($x=1; $x<=5; $x++) { ?>
<div class="active item">
<div class="fill" style="background-image:url('<?php echo onepage_get_option("onepage_sliderimage" . $x); ?>');">
<div class="container">
<h3 class="carousel_headline"><?php echo onepage_get_option('onepage_sliderimage' . $x . '_heading_middle'); ?></h3>
</div>
</div>
</div>
<?php } ?>
</div>