reset paginator on window resize