Better method to get the viewport width