Refactors search bar shift. Inspired on @NikeDude's commit.
Adds safe filter for 500px. Bases on @Evrst commit.