Fix sliding panel width when animating.