Basic event listening for element resizing