update preview layout