Modified div width function for mobile.