Up to now the TS length was hardcoded for the TimesliceMetaData object. This commit adds an automatic calculation and inserts it into the stored TimesliceMetaData objects.