accelerometer plus screen resizing