fix progress bar not calculating slides length