fdo#74383 - PagesField: do not count hidden slides

Change-Id: Ied09cc3ed4305c14583e9f4d9ce211514c2c90e1