Properly scoped galleries and photos