custom scrollbar calculation on window resize