made animation drawer dynamic to window size