finally got the collection items gallery to stop opening on page change