animating opening and closing of options dropdown