They have a side judge whose only job is to look for offsides. You basically stand parallel to the further defender and that determines the line.
And to determine if the ball has completed crossed the side line or byline. They also assist the Referee in determining fouls.