Resize frame depending on results number