added count div, improved two slice