fixing an issue where the old span square stay after hitting more or less button