add method updateLabelsPosition and handler window resize