Tablet width variable and modal position reset