added active thumbnail centering to window resize