bug while counting slides fixed