removing unecessary slides