Fixing initial offset calculation

Initial offset calculated using slides count and initial slide but in some cases more than one clone is prepended see line 74