Fix animation resizing and position with small windows