resize fix for mobile devices