Adding scale function for small screen

Adding scale function for small screen without destroying ratio (smart)