change frame duration