format layout for smaller screens