refactor ImageSlideWithLayout using new canRenderLayout api call