use display metric to get screen width