trying to get this to only run in the horizontal layout.