Offset for the sliding menu compatible with screen sizes