1 is y, the dimension for slides. the offset must be computed differently in this direction.