[ticket/329] Remove span surrounding pagination

Fixes #329