Expand and contract a search field with animation