new serialize function for 3 phone layers