Fixed off-by-one in horizontal glide of buffer