Fix #10 truncate pagination if it has more elements than we can show on the same line