Throughout the series, the characters sometimes bang their fists together as an equivalent to giving someone the middle finger. This became a running joke starting in Season 4 (The One With Joey's New Girlfriend) when Ross did it to Rachel after she insulted him.