Revert "remove spans, since pagination.js is only looking for a-elements"

This reverts commit fcf6fdf79c7b20009bfe899ed6da86fa7c84d684.
restore original pagination behaviour