removing link flicker on front page, preparing gallery filter