fixed clicking on same link and sliding up issue

if you clicked on the same accordion link while it was open, it would
slide up and then slide down again. Bad user experience. [Fixed]
Merge branch 'master' into gh-pages