updates the total number of frame label when layer added/removed
modification in medTimeLineParameter::nextframe method
cleaning