modified to preview windows on switch
changed to grid layout for active windows