centered content fix for all gallery types