Added check for screen size

Then moved position of the icon depending on that variable.