fixed hiding/showing sidebar animation bugs