using jquery animate for dialog