Changed span sizing function