added function to set frames length when algo is set to prop