calculate li's width & set to container's width