Fix sticky again

Fixing sticky again.

Ping @gnpfonseca

This is still a bit messy, since it doesn't use any classes and it manually checks whether the screen width is less than 650, but the code got a bit cleaner and the bottom element issue was fixed.