Added conditional for slides to be published