small fixes for pagination style in flatly theme