animated grid and jquery collapsing search bar