corrected layout for smaller devices