Call actions based on the window width on window resize