add max queue length to animated element