fix sidebar transtion javascript control bug