Make your manager look good
Ultimately the person who is most likely to responsible for the decision of who gets laid off is your manager. The worker that consistently make their manager look good is going to be the last person they want to let go. Everyone has that fear that they might be perceived as someone not worthy of their job. The last thing you want to do is let the person who is helping to push you up the ladder, get knocked off.
Make your team look good
People who help the team look good are the people who help the team function better. They are leaders by example and are the people who are the ambassador of their team. Groups that appear to perform well and deliver well are less likely to be targeted for cuts in the first place, and often have smaller cuts to make when they are required. These are the teams that get more work when the other teams are forced to cut. So if you can make your team look good then you are helping protect yourself from being laid off.
Avoid ConflictMake your manager's job easy
When cuts have to be made, people who are perceived as being involved in conflict are more likely to be targeted. Conflict creates more work for your manager, reduces productivity, and makes everyone involved look bad. This includes arguments, finger pointing, and Avoiding requires thinking ahead and seeing potential problems before they prop up. When you are forced to react you are more likely to get involved in a conflict, if you can address something proactively you are in a better position to avoid the conflict. And while it should go with out saying, avoid conflict with your manager. It is fine to provide your opinion but if your manager disagrees or says to do something else you should do your best to make that a success.