I have a powerapp gallery where i show all my academic records as per below screenshot.

There is a checkbox over the top of the gallery which states "Show Topper Only". Clicking on this should only show me first 3 topper rows from the gallery. However the code is not working properly and shows all records. May i know where i am going wrong?
Items property of Gallery
If(Checkbox3.Value,
SortByColumns(
Filter(
Transaction,
Email = User().Email
),
"Price",
SortOrder.Descending
)
,SortByColumns(
Filter(
Transaction,
Email = User().Email
),
"DateTime",
SortOrder.Descending
))
Topper Label visible property
If(
First(
SortByColumns(
Filter(
Transaction,
Item_No= ThisItem.Item_No
),
"Price",
SortOrder.Descending
)
).Price = Value(Label16_12.Text),
true,
false
)