solved checking number of slides/sections