track index add length to js
remove previous icon