Reese Witherspoon says she got 'panic attacks' before filmin