fixing bug with num slides