I'm using Wordpress and Custom Content Types Manager, how do I go about editing the code below to only grab the first image from the array below?

```
    <?php
        $array_of_images = get_custom_field('slide_images:to_array');

        foreach ($array_of_images as $img_id) {
        ?>

        <div><?php print CCTM::filter($img_id, 'to_image_tag'); ?> </div>

    <?php } ?>

```

I tried adding in `array_slice($array_of_images, 0, 1);` but no luck so far. Thanks!