Added resize hook to recalculate elements position after window resize