added constraint for maximum number of shown sites