How to prepare for a potential layoff