hide middle markers if there is not enough space