fix layout for sm md device