try using slideup / slidedown instead of fadein / fadeout for query transition.