Added limit to li elements added to dom