Fixing issue in responsive animation