split display method based on device size