# Using slideshows with a dataset: checking for missing columns

**URL:** <https://forum.wixstudio.com/t/using-slideshows-with-a-dataset-checking-for-missing-columns/5305>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [September 24, 2018, 11:23am UTC](https://forum.wixstudio.com/t/using-slideshows-with-a-dataset-checking-for-missing-columns/5305 "2018-09-24T11:23:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mt\_pir0](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mt_pir0/32/6405_2.png) [@mt\_pir0](https://forum.wixstudio.com/u/mt_pir0)\
**Post date:** [September 24, 2018, 11:23am UTC](https://forum.wixstudio.com/t/using-slideshows-with-a-dataset-checking-for-missing-columns/5305/1 "2018-09-24T11:23:14Z")

</div>

Hey all,

I have dynamic pages with slideshows populated from a row in my database. Each row is a new dynamic page. I followed this code to get the slideshow to work: [https://www.wix.com/code/home/forum/community-discussion/resolvedrevisiting-a-theme-unique-slideshow-on-dynamic-page](https://www.wix.com/code/home/forum/community-discussion/resolvedrevisiting-a-theme-unique-slideshow-on-dynamic-page)

But with that code, I can specify a finite number of images in the slideshow. One of my dynamic pages could have 3 images, but another may have up to 10 depending on whats available in the database. If I set the number of sources for the images to 10, the dynamic page with 3 images will have a slideshow with 7/10 blank images.

Is there any way I can check for null fields in the dataset and limit the slideshow to be only the number of images that are available in the dataset for that row?
