Fix pagination gap element rendering