adding all the standard work over to gallery theme