minor change to sql on getSlides